<?php
/**
 * Create by Phpstorm
 * User: Peco
 * Date: 2019/12/14
 * Time: 18:21
 */

namespace App\Http\Transformers;

use App\Models\Attachment;
use League\Fractal\TransformerAbstract;

class AttachmentTransformer extends TransformerAbstract
{
    protected $authorization;

    public function transform(Attachment $attachment)
    {
        return $attachment->attributesToArray();
    }
}
